<template>
	<view class="page-wrap">
		<view class="header-box">
			<sundeheng-custom bgColor="#EE5953" :isBack="true" class="sundeheng">
				<block slot="content">账户详情</block>
			</sundeheng-custom>
			<view class="user-info">
				<view class="user-logo">
					<image class="img-full" src="@/static/user/logo.png"></image>
				</view>
				<view class="user-name">
					<view class="user-name-text">
						同花顺模拟
					</view>
					<view class="user-account">
						模拟账号 ***5308
					</view>
				</view>
			</view>
		</view>
		<view class="present-interest">
			<view class="equity-box">
				<view class="present-interest-title">
					当前权益
				</view>
				<view class="present-interest-num">
					100000000
				</view>
				<view class="present-interest-overview">
					<view class="overview-item">
						<view class="overview-item-text">
							盯市盈亏
						</view>
						<view class="overview-item-num">
							0
						</view>
					</view>
					<view class="overview-item">
						<view class="overview-item-text">
							盯市盈亏
						</view>
						<view class="overview-item-num">
							0
						</view>
					</view>
					<view class="overview-item">
						<view class="overview-item-text">
							使用率
						</view>
						<view class="overview-item-num">
							0%
						</view>
					</view>
				</view>
			</view>
			<view class="account-benefits-menu">
				<uni-list>
					<uni-list-item
						v-for="(item, i) in list"
						:key="i"
						:title="item.title"
						thumb-size="base"
						:to="item.to"
						:rightText="item.rightText" />
				</uni-list>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					{
						thumb: require('@/static/transaction/management1.png'),
						title: '日期',
						rightText: '2023-11-06',
						to: '',
					},{
						thumb: require('@/static/transaction/management2.png'),
						title: '期初权益',
						rightText: '1000000.000',
						to: '',
					},{
						thumb: require('@/static/transaction/management3.png'),
						title: '当前权益',
						rightText: '1000000.000'
					},{
						thumb: require('@/static/transaction/management4.png'),
						title: '期权市值',
						rightText: '0.000'
					},{
						thumb: require('@/static/transaction/management5.png'),
						title: '市值权益',
						rightText: '1000000.000'
					},{
						thumb: require('@/static/transaction/management6.png'),
						title: '可用资金',
						rightText: '1000000.000'
					},{
						thumb: require('@/static/transaction/management7.png'),
						title: '资金使用率',
						rightText: '0.000'
					},{
						thumb: require('@/static/transaction/management3.png'),
						title: '平仓盈亏',
						rightText: '1000000.000'
					},{
						thumb: require('@/static/transaction/management5.png'),
						title: '平仓盈亏率',
						rightText: '0.000%'
					},{
						thumb: require('@/static/transaction/management6.png'),
						title: '持仓盯市盈亏',
						rightText: '0.00'
					},{
						thumb: require('@/static/transaction/management7.png'),
						title: '持仓盯市盈亏率',
						rightText: '0.000%'
					},{
						thumb: require('@/static/transaction/management3.png'),
						title: '期权执行盈亏',
						rightText: '0.000'
					},{
						thumb: require('@/static/transaction/management5.png'),
						title: '资金使用率',
						rightText: '0.000'
					},{
						thumb: require('@/static/transaction/management6.png'),
						title: '0.000',
						rightText: '0.000'
					},{
						thumb: require('@/static/transaction/management7.png'),
						title: '手续费',
						rightText: '0.000'
					},{
						thumb: require('@/static/transaction/management3.png'),
						title: '出入金',
						rightText: '0.000'
					},{
						thumb: require('@/static/transaction/management5.png'),
						title: '持仓保证金',
						rightText: '0.000'
					},{
						thumb: require('@/static/transaction/management6.png'),
						title: '持仓保证金',
						rightText: '0.000'
					}
				]
			};
		}
	}
</script>

<style lang="scss">
page {
	background-color: #F4F5F7;
}
.page-wrap {
	// background-color: #F4F5F7;
}
.header-box {
	background: linear-gradient(180deg, #EE5953 0%, #FF3B30 100%);
	padding-bottom: 192rpx;
	.user-info {
		display: flex;
		align-items: center;
		margin-top: 40rpx;
		padding: 0 44rpx;
		.user-logo {
			width: 64rpx;
			height: 64rpx;
		}
		.user-name {
			margin-left: 16rpx;
			.user-name-text {
				font-size: 32rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: bold;
				color: #FFFFFF;
				line-height: 38rpx;
			}
			.user-account {
				font-size: 20rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				color: #FFFFFF;
				margin-top: 10rpx;
			}
		}
	}
}
.present-interest {
	transform: translateY(-148rpx);
	.equity-box {
		width: 686rpx;
		height: 284rpx;
		background: #FFFFFF;
		border-radius: 16rpx;
		margin: 0 auto;
		box-sizing: border-box;
		padding: 28rpx 32rpx;
		.present-interest-title {
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: rgba(0,0,0,0.8);
		}
		.present-interest-num {
			font-size: 64rpx;
			font-family: DIN, DIN;
			font-weight: bold;
			color: #EE5953;
			line-height: 78rpx;
			margin-top: 14rpx;
		}
		.present-interest-overview {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 24rpx;
			.overview-item {
				flex: 1;
				font-size: 24rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				color: rgba(0,0,0,0.8);
				line-height: 34rpx;
			}
		}
	}
}
.account-benefits-menu {
	width: 686rpx;
	background: #FFFFFF;
	border-radius: 16rpx;
	box-sizing: border-box;
	margin: 24rpx auto;
	padding: 0 32rpx;
}
</style>
